﻿<Page x:Class="ControlDemos.DockPanelSplitterPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:p="clr-namespace:PropertyTools.Wpf;assembly=PropertyTools.Wpf" mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="400"
	Title="DockPanelSplitter">
    <DockPanel>
        <Grid DockPanel.Dock="Left" Width="200" MinWidth="40">
            <Rectangle Fill="LightBlue"/>
        </Grid>
        <p:DockPanelSplitter DockPanel.Dock="Left"/>

        <Grid DockPanel.Dock="Right" Width="80">
            <Rectangle Fill="Yellow"/>
        </Grid>
        <!-- this splitter is not proportionally resized when the parent panel is resized -->
        <p:DockPanelSplitter DockPanel.Dock="Right" Thickness="2" ProportionalResize="False"/>

        <Grid DockPanel.Dock="Top" Height="80" MinHeight="20">
            <Rectangle Fill="LightGreen"/>
        </Grid>
        <p:DockPanelSplitter DockPanel.Dock="Top"/>

        <Grid DockPanel.Dock="Bottom" Height="70">
            <Rectangle Fill="LightPink"/>
        </Grid>
        <p:DockPanelSplitter DockPanel.Dock="Bottom"/>

        <Grid Background="Coral" >
            <Rectangle Fill="Coral"/>
        </Grid>
    </DockPanel>
</Page>
